package org.ccay.core.log;


/**
 * 继承LoggerFactory
 */
public final class CcayLoggerFactory {
	private CcayLoggerFactory(){
	}
	
	/**
	 * 通过名字获取Logger
	 * @param name
	 * @return
	 */
	public static ILogger getLogger(String name){
		return Log4jLogger.getLog(name);
	}	
	/**
	 * 通过Class获取日志记录器
	 * @param clazz
	 * @return
	 */
	public static ILogger getLogger(Class<?> clazz){
		return getLogger(clazz.getName());
	}
}
